package com.study._1_linked_lister;

public class LinkedNode {

    public int data;

    public LinkedNode next;

    public LinkedNode() {
    }

    public LinkedNode(int data) {
        this.data = data;
    }

    public static LinkedNode clone(LinkedNode target) {
        LinkedNode clone = new LinkedNode(target.data);
        clone.next = target.next;
        return clone;
    }
}
